export default defineAppConfig({
    lazyCodeLoading: 'requiredComponents',
    pages: [
        'pages/index/index',
        'pages/shop/shop',
        'pages/product-detail/index',
        'pages/login/login',
        'pages/login/test',
        'pages/login/debug',
        'pages/login/hospital-list',
        'pages/my/index',
        'pages/search-result/index',
        // 'pages/nurses/index',
        // 'pages/orders/index',
        // 'pages/nursesmy/index',
        'pages/leader/leader',
        'pages/cart/cart',
        'pages/webview/webview',
        'pages/customer-service/index'
    ],
    window: {
        backgroundColor: '#fff',
        backgroundTextStyle: 'light',
        navigationBarBackgroundColor: '#fff',
        navigationBarTitleText: '广西安好护理',
        navigationBarTextStyle: 'black'
    },
    subPackages: [
        {
            root: 'package-other',
            pages: [
                'login/login',
                'nurses/index',
                'nurses/detail',
                'orders/index',
                'orders/goods',
                'nursesmy/index',
                'orders/detail',
                'articles/index',
                'videos/index',
                'health/index',
                'health/pages/comm',
                'health/pages/my-tag',
                'books/service-notice',
                'books/informed-consent',
                'books/risk-disclosure',
                'books/charge-description',
                'health/web'
            ]
        },
        {
            root: 'package-card',
            pages: [
                'home/index',
                'info/index/index',
                // 'info/socioeconomic/index',
                // 'info/socioeconomic/list',
                // 'info/socioeconomic/add',
                // 'info/socioeconomic/edit',
                // 'info/personal/index',
                // 'info/personal-person-detail/index',
                // 'info/personal-person-detail-contact/index',
                // 'info/personal-manager/index',
                // 'info/user/index',
                // 'info/demographic/edit',
                // 'info/demographic-body/index',
                // 'info/health/index',
                // 'info/health-exam/index',
                // 'info/health-exam/add',
                // 'info/health-exam/edit',
                // 'info/health-exam/view',
                // 'info/past-medical/index',
                // 'info/past-medical/add',
                // 'info/past-medical/edit',
                // 'info/past-medical/view',
                // 'info/health-live-habits/index',
                // 'info/health-live-habits/add',
                // 'info/health-live-habits/edit',
                // 'info/health-live-habits/view',
                // 'info/family-doctor/list',
                // 'info/family-doctor/add',
                // 'info/family-doctor/edit',
                // 'info/family-doctor/view',
                // 'info/health-social/add',
                // 'info/health-social/edit',
                // 'info/health-social/view',
                // 'info/emergency-contact/list',
                // 'info/emergency-contact/add',
                // 'info/emergency-contact/edit',
                // 'info/emergency-contact/view',
                // 'info/guardian/index',
                // 'info/guardian/add',
                // 'info/guardian/edit',
                // 'info/guardian/view',
                // 'info/medical-history/index',
                // 'info/medical-history/add',
                // 'info/medical-history/edit',
                // 'info/medical-history/view',

                // 'info/health_basepro/list',
                // 'info/health_basepro/add',
                // 'info/health_basepro/edit',

                // 'historys/index/index',
                // 'historys/healthSeeDocInfo/index',
                // 'historys/healthSeeDocInfo/add',
                // 'historys/healthSeeDocInfo/edit',
                // 'historys/healthSeeDocInfo/view',
                // 'historys/past-medical/index',
                // 'historys/past-medical/add',
                // 'historys/past-medical/edit',
                // 'historys/past-medical/view',
                // 'historys/past-medical/list',
                
                // 'historys/health-exam-record/index',
                // 'historys/health-exam-record/add',
                // 'historys/health-exam-record/edit',
                // 'historys/health-exam-record/view',
                // 'historys/health-exam-record/list',
                
                // 'historys/past-operation/index',
                // 'historys/past-operation/add',
                // 'historys/past-operation/edit',
                // 'historys/past-operation/view',
                // 'historys/past-operation/list',
                
                // 'historys/past-allergy/index',
                // 'historys/past-allergy/add',
                // 'historys/past-allergy/edit',
                // 'historys/past-allergy/view',
                // 'historys/past-allergy/list',
                
                // 'historys/health-vacc/index',
                // 'historys/health-vacc/add',
                // 'historys/health-vacc/edit',
                // 'historys/health-vacc/view',
                // 'historys/health-vacc/list',
            ]
        },
        {
            root: 'package',
            pages: [
                'help/index',
                'mine/index',
                'guardian/index',
                'addr/index',
                'addr/home',
                'nursesdetail/index',
                'goodsdetail/index',
                'goodspay/index',
                'goodspay/server',
                // 'login/index',
                'comment/index',
                'refund/index',
                'bill/index',
                'bill/extend',
                'nearshop/index',
                'switchcity/index'
            ]
        },
        {
            root: 'package-home',
            pages: [
                'companion/index',
                'gohome/index',
                'hospital/index',
                'share/index',
                'singleservice/index',
                'mother-baby/index',
                'information/index',
                'articles/index',
                'videos/index'
            ]
        },
        {
            root: 'package-my',
            pages: [
                'billlist/index',
                'privacy/index',
                'guardianlist/index',
                'addrlist/index',
                'homeaddrlist/index',
                'comment/index',
                'refundlist/index',
                'specialList/index',
                'info/index',
                'info/idcard',
                'info/phone',
                // 'info/face',
                // 'info/healthcode',
                'healthcode/index'
            ]
        },
        {
            root: 'package-nurses',
            pages: ['execute/index', 'login/index', 'mine/index']
        }
    ],

    tabBar: {
        custom: true,
        color: '#999999',
        selectedColor: '#3d8944',
        backgroundColor: '#ffffff',
        list: [
            {
                pagePath: 'pages/index/index',
                text: '首页',
                iconPath: 'assets/ico/home.png',
                selectedIconPath: 'assets/ico/home-fill.png'
            },
            {
                pagePath: 'pages/shop/shop',
                text: '大药房',
                iconPath: 'assets/ico/shop.png',
                selectedIconPath: 'assets/ico/shop-fill.png'
            },
            {
                pagePath: 'pages/leader/leader',
                text: '导诊台',
                iconPath: 'assets/ico/leader.png',
                selectedIconPath: 'assets/ico/leader-fill.png'
            },
            {
                pagePath: 'pages/cart/cart',
                text: '购物车',
                iconPath: 'assets/ico/cart.png',
                selectedIconPath: 'assets/ico/cart-fill.png'
            },
            {
                pagePath: 'pages/my/index',
                text: '我的',
                iconPath: 'assets/ico/my.png',
                selectedIconPath: 'assets/ico/my-fill.png'
            }
            // {
            //   pagePath: 'pages/my/index',
            //   text: '个人中心'
            // },
            // {
            //   pagePath: 'pages/nurses/index',
            //   text: '服务员'
            // },
            // {
            //   pagePath: 'pages/orders/index',
            //   text: '服务'
            // },
            // {
            //   pagePath: 'pages/nursesmy/index',
            //   text: '个人中心'
            // },
        ]
    },

    requiredPrivateInfos: [
        'getLocation', // 获取当前的地理位置、速度。当用户离开小程序后，此接口无法调用。开启高精度定位，接口耗时会增加，可指定 highAccuracyExpireTime 作为超时时间。
        'chooseLocation' // 打开地图选择位置。
    ],
    permission: {
        'scope.userLocation': {
            desc: '你的位置信息将用于小程序位置接口的效果展示'
        },
        // 'scope.userPhoneNumber': {
        //     desc: '你的手机号将用于小程序登录'
        // }
    }
    // plugins: {
    //   chooseLocation: {
    //     version: "1.1.1",
    //     provider: "wx76a9a06e5b4e693e"
    //   }
    // },
    // permission: {
    //   "scope.userLocation": {
    //     "desc": "你的位置信息将用于小程序定位"
    //   }
    // }
});
